package com.作业.Day3;



import java.util.Arrays;
import java.util.Scanner;


public class Exercise1 {
    public static void main(String[] args) {
//        创建数组
        int[] a ={99,85,82,63,66};
        int[] b = new int[6];
        for(int i=0;i<a.length;i++){
            b[i]=a[i];
        }

        System.out.println(Arrays.toString(b));
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
        b[b.length-1]=i;
        System.out.println(Arrays.toString(b));
        Arrays.sort(b);
        System.out.println(Arrays.toString(b));

    }
}
